//common javascript function will be listed here
function loadContactsList(workbenchId,url)
{
	$(workbenchId).html("loading...");
	$.getJSON(url, function (data) {
        if (data.length > 0) {
          var results = data;
          var content="<p>";
          for (var i=0; i < results.length; i++) {
            // Display each result however you wish 
            content += "<a href='#' onclick='doContact(this)' contact_code='"+results[i].code+"'><img src='"+results[i].avater_url+"' alt='"+results[i].name+"'/></a> ";
          }
          content+="</p>";
         
          $(workbenchId).html(content);
        }
      });
}